From 5b9963f11b8f2bda125376470f9a71eec10c61ce Mon Sep 17 00:00:00 2001 From: Alastair Tse Date: Fri, 6 Oct 2006 12:02:29 +0100 Subject: [PATCH] [XENAPI] Fix wrong vars being extracted from reading python cfg Signed-off-by: Alastair Tse --- tools/python/scripts/xapi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/python/scripts/xapi.py b/tools/python/scripts/xapi.py index 41f10aca19..922b47ca90 100644 --- a/tools/python/scripts/xapi.py +++ b/tools/python/scripts/xapi.py @@ -67,9 +67,9 @@ def _stringify(adict): return dict([(k, str(v)) for k, v in adict.items()]) def _read_python_cfg(filename): - cfg_globals = {} - execfile(filename, cfg_globals, {}) - return cfg_globals + cfg = {} + execfile(filename, {}, cfg) + return cfg # # Actual commands -- 2.30.2